package com.mobilereports.model;

import java.util.HashMap;
import java.util.Map;

public class Record {
	public static final String RECORD_ELEMENT = "record";
	
	private Map<String, Object> attributes = new HashMap<String, Object>();
	
	public Object getAttribute(String key) {
		return attributes.get(key);
	}
	
	public String getAttributeAsString(String key) {
		Object o = getAttribute(key);
		return o != null ? o.toString() : "";
	}
	
	public void setAttribute(String key, Object v) {
		attributes.put(key, v);
	}
}
